import request from '@/utils/request'

// 查询绿化记录列表
export function listBuiGreenRecord(query) {
  return request({
    url: '/park/buiGreenRecord/list',
    method: 'get',
    params: query
  })
}

// 查询绿化记录详细
export function getBuiGreenRecord(id) {
  return request({
    url: '/park/buiGreenRecord/' + id,
    method: 'get'
  })
}

// 新增绿化记录
export function addBuiGreenRecord(data) {
  return request({
    url: '/park/buiGreenRecord',
    method: 'post',
    data: data
  })
}

// 修改绿化记录
export function updateBuiGreenRecord(data) {
  return request({
    url: '/park/buiGreenRecord',
    method: 'put',
    data: data
  })
}

// 删除绿化记录
export function delBuiGreenRecord(id) {
  return request({
    url: '/park/buiGreenRecord/' + id,
    method: 'delete'
  })
}
